# !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
 -------------------------------------------------
    File Name:     assert_type.py
    Description:   
 -------------------------------------------------
 """
from enum import unique

from apitesting.src.enums.base_enum import StrEnum


@unique
class AssertStrType(StrEnum):
    """
    断言字符串类型的枚举类。
    """

    # equal：'eq'
    equal = 'eq'
    not_equal = 'not_eq'
    greater_than = 'gt'
    greater_than_or_equal = 'ge'
    less_than = 'lt'
    less_than_or_equal = 'le'
    string_equal = 'str_eq'
    length_equal = 'len_eq'
    not_length_equal = 'not_len_eq'
    length_less_than = 'len_lt'
    length_less_than_or_equal = 'len_le'
    length_greater_than = 'len_gt'
    length_greater_than_or_equal = 'len_ge'
    contains = 'contains'
    not_contains = 'not_contains'
    startswith = 'startswith'  # type: ignore
    endswith = 'endswith'  # type: ignore


class AssertIntType(StrEnum):

    equal = '=='
    not_equal = '!='
    greater_than = '>'
    greater_than_or_equal = '>='
    less_than = '<'
    less_than_or_equal = '<='
    string_equal = '=='
    length_equal = '=='
    not_length_equal = ' !='
    length_less_than = ' <'
    length_less_than_or_equal = ' <='
    length_greater_than = ' >'
    length_greater_than_or_equal = ' >='
    contains = 'in'
    not_contains = 'not in'
    startswith = 'startswith'  # type: ignore
    endswith = 'endswith'  # type: ignore
